#ifndef d3d10headers_h__
#define d3d10headers_h__

#include <d3dx10.h>
#include <dxerr.h>

#if defined(DEBUG) | defined(_DEBUG)
#ifndef HR
	#define HR(x)                                              \
	{                                                          \
		HRESULT hr = (x);                                      \
		if(FAILED(hr))                                         \
		{                                                      \
			DXTrace(__FILE__, (DWORD)__LINE__, hr, L#x, true); \
		}                                                      \
	}
#endif
#else
#ifndef HR
#define HR(x) (x)
#endif
#endif 



#endif // d3d10headers_h__
